package org.smartercontext.test;

import java.rmi.RemoteException;

import org.smartercontext.contextmger.communication.Communication_Impl;

public class HiloLogin implements Runnable {
	
	private Communication_Impl comm_impl;
	public boolean stop = false;
	private String loginT;
	
	public HiloLogin(Communication_Impl impl, String jFormat){
		comm_impl = impl;
		loginT = jFormat;
	}

	@Override
	public void run() {
		
		try {
			comm_impl.login(loginT, "json");
			stop = true;
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
